Optimal. Leaf size=115 \[ \frac {13-6 x}{1012 \left (3-x+2 x^2\right )^2}+\frac {3625-746 x}{256036 \left (3-x+2 x^2\right )}-\frac {53403 \tan ^{-1}\left (\frac {1-4 x}{\sqrt {23}}\right )}{5632792 \sqrt {23}}+\frac {247 \tan ^{-1}\left (\frac {3+10 x}{\sqrt {31}}\right )}{10648 \sqrt {31}}-\frac {119 \log \left (3-x+2 x^2\right )}{21296}+\frac {119 \log \left (2+3 x+5 x^2\right )}{21296} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 115, normalized size of antiderivative = 1.00, number of steps
used = 11, number of rules used = 7, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.280, Rules used = {988, 1074,
1086, 648, 632, 210, 642} \begin {gather*} -\frac {53403 \text {ArcTan}\left (\frac {1-4 x}{\sqrt {23}}\right )}{5632792 \sqrt {23}}+\frac {247 \text {ArcTan}\left (\frac {10 x+3}{\sqrt {31}}\right )}{10648 \sqrt {31}}+\frac {3625-746 x}{256036 \left (2 x^2-x+3\right )}+\frac {13-6 x}{1012 \left (2 x^2-x+3\right )^2}-\frac {119 \log \left (2 x^2-x+3\right )}{21296}+\frac {119 \log \left (5 x^2+3 x+2\right )}{21296} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 210
Rule 632
Rule 642
Rule 648
Rule 988
Rule 1074
Rule 1086
Rubi steps
\begin {align*} \int \frac {1}{\left (3-x+2 x^2\right )^3 \left (2+3 x+5 x^2\right )} \, dx &=\frac {13-6 x}{1012 \left (3-x+2 x^2\right )^2}-\frac {\int \frac {-3652-1936 x+990 x^2}{\left (3-x+2 x^2\right )^2 \left (2+3 x+5 x^2\right )} \, dx}{11132}\\ &=\frac {13-6 x}{1012 \left (3-x+2 x^2\right )^2}+\frac {3625-746 x}{256036 \left (3-x+2 x^2\right )}-\frac {\int \frac {-6551908-7779574 x+902660 x^2}{\left (3-x+2 x^2\right ) \left (2+3 x+5 x^2\right )} \, dx}{61960712}\\ &=\frac {13-6 x}{1012 \left (3-x+2 x^2\right )^2}+\frac {3625-746 x}{256036 \left (3-x+2 x^2\right )}-\frac {\int \frac {-154867174+335151124 x}{3-x+2 x^2} \, dx}{14994492304}-\frac {\int \frac {-425275796-837877810 x}{2+3 x+5 x^2} \, dx}{14994492304}\\ &=\frac {13-6 x}{1012 \left (3-x+2 x^2\right )^2}+\frac {3625-746 x}{256036 \left (3-x+2 x^2\right )}+\frac {53403 \int \frac {1}{3-x+2 x^2} \, dx}{11265584}-\frac {119 \int \frac {-1+4 x}{3-x+2 x^2} \, dx}{21296}+\frac {119 \int \frac {3+10 x}{2+3 x+5 x^2} \, dx}{21296}+\frac {247 \int \frac {1}{2+3 x+5 x^2} \, dx}{21296}\\ &=\frac {13-6 x}{1012 \left (3-x+2 x^2\right )^2}+\frac {3625-746 x}{256036 \left (3-x+2 x^2\right )}-\frac {119 \log \left (3-x+2 x^2\right )}{21296}+\frac {119 \log \left (2+3 x+5 x^2\right )}{21296}-\frac {53403 \text {Subst}\left (\int \frac {1}{-23-x^2} \, dx,x,-1+4 x\right )}{5632792}-\frac {247 \text {Subst}\left (\int \frac {1}{-31-x^2} \, dx,x,3+10 x\right )}{10648}\\ &=\frac {13-6 x}{1012 \left (3-x+2 x^2\right )^2}+\frac {3625-746 x}{256036 \left (3-x+2 x^2\right )}-\frac {53403 \tan ^{-1}\left (\frac {1-4 x}{\sqrt {23}}\right )}{5632792 \sqrt {23}}+\frac {247 \tan ^{-1}\left (\frac {3+10 x}{\sqrt {31}}\right )}{10648 \sqrt {31}}-\frac {119 \log \left (3-x+2 x^2\right )}{21296}+\frac {119 \log \left (2+3 x+5 x^2\right )}{21296}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.12, size = 99, normalized size = 0.86 \begin {gather*} \frac {3310986 \sqrt {23} \tan ^{-1}\left (\frac {-1+4 x}{\sqrt {23}}\right )+6010498 \sqrt {31} \tan ^{-1}\left (\frac {3+10 x}{\sqrt {31}}\right )+713 \left (-\frac {44 \left (-14164+7381 x-7996 x^2+1492 x^3\right )}{\left (-3+x-2 x^2\right )^2}-62951 \log \left (3-x+2 x^2\right )+62951 \log \left (2+3 x+5 x^2\right )\right )}{8032361392} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.16, size = 89, normalized size = 0.77
method | result | size |
default | \(-\frac {\frac {8206}{529} x^{3}-\frac {43978}{529} x^{2}+\frac {81191}{1058} x -\frac {77902}{529}}{2662 \left (2 x^{2}-x +3\right )^{2}}-\frac {119 \ln \left (2 x^{2}-x +3\right )}{21296}+\frac {53403 \sqrt {23}\, \arctan \left (\frac {\left (4 x -1\right ) \sqrt {23}}{23}\right )}{129554216}+\frac {119 \ln \left (5 x^{2}+3 x +2\right )}{21296}+\frac {247 \arctan \left (\frac {\left (3+10 x \right ) \sqrt {31}}{31}\right ) \sqrt {31}}{330088}\) | \(89\) |
risch | \(\frac {-\frac {373}{64009} x^{3}+\frac {1999}{64009} x^{2}-\frac {61}{2116} x +\frac {3541}{64009}}{\left (2 x^{2}-x +3\right )^{2}}-\frac {119 \ln \left (16 x^{2}-8 x +24\right )}{21296}+\frac {53403 \sqrt {23}\, \arctan \left (\frac {\left (4 x -1\right ) \sqrt {23}}{23}\right )}{129554216}+\frac {247 \arctan \left (\frac {\left (3+10 x \right ) \sqrt {31}}{31}\right ) \sqrt {31}}{330088}+\frac {119 \ln \left (100 x^{2}+60 x +40\right )}{21296}\) | \(89\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.52, size = 98, normalized size = 0.85 \begin {gather*} \frac {247}{330088} \, \sqrt {31} \arctan \left (\frac {1}{31} \, \sqrt {31} {\left (10 \, x + 3\right )}\right ) + \frac {53403}{129554216} \, \sqrt {23} \arctan \left (\frac {1}{23} \, \sqrt {23} {\left (4 \, x - 1\right )}\right ) - \frac {1492 \, x^{3} - 7996 \, x^{2} + 7381 \, x - 14164}{256036 \, {\left (4 \, x^{4} - 4 \, x^{3} + 13 \, x^{2} - 6 \, x + 9\right )}} + \frac {119}{21296} \, \log \left (5 \, x^{2} + 3 \, x + 2\right ) - \frac {119}{21296} \, \log \left (2 \, x^{2} - x + 3\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.03, size = 177, normalized size = 1.54 \begin {gather*} -\frac {46807024 \, x^{3} - 6010498 \, \sqrt {31} {\left (4 \, x^{4} - 4 \, x^{3} + 13 \, x^{2} - 6 \, x + 9\right )} \arctan \left (\frac {1}{31} \, \sqrt {31} {\left (10 \, x + 3\right )}\right ) - 3310986 \, \sqrt {23} {\left (4 \, x^{4} - 4 \, x^{3} + 13 \, x^{2} - 6 \, x + 9\right )} \arctan \left (\frac {1}{23} \, \sqrt {23} {\left (4 \, x - 1\right )}\right ) - 250850512 \, x^{2} - 44884063 \, {\left (4 \, x^{4} - 4 \, x^{3} + 13 \, x^{2} - 6 \, x + 9\right )} \log \left (5 \, x^{2} + 3 \, x + 2\right ) + 44884063 \, {\left (4 \, x^{4} - 4 \, x^{3} + 13 \, x^{2} - 6 \, x + 9\right )} \log \left (2 \, x^{2} - x + 3\right ) + 231556732 \, x - 444353008}{8032361392 \, {\left (4 \, x^{4} - 4 \, x^{3} + 13 \, x^{2} - 6 \, x + 9\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.15, size = 122, normalized size = 1.06 \begin {gather*} \frac {- 1492 x^{3} + 7996 x^{2} - 7381 x + 14164}{1024144 x^{4} - 1024144 x^{3} + 3328468 x^{2} - 1536216 x + 2304324} - \frac {119 \log {\left (x^{2} - \frac {x}{2} + \frac {3}{2} \right )}}{21296} + \frac {119 \log {\left (x^{2} + \frac {3 x}{5} + \frac {2}{5} \right )}}{21296} + \frac {53403 \sqrt {23} \operatorname {atan}{\left (\frac {4 \sqrt {23} x}{23} - \frac {\sqrt {23}}{23} \right )}}{129554216} + \frac {247 \sqrt {31} \operatorname {atan}{\left (\frac {10 \sqrt {31} x}{31} + \frac {3 \sqrt {31}}{31} \right )}}{330088} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.97, size = 88, normalized size = 0.77 \begin {gather*} \frac {247}{330088} \, \sqrt {31} \arctan \left (\frac {1}{31} \, \sqrt {31} {\left (10 \, x + 3\right )}\right ) + \frac {53403}{129554216} \, \sqrt {23} \arctan \left (\frac {1}{23} \, \sqrt {23} {\left (4 \, x - 1\right )}\right ) - \frac {1492 \, x^{3} - 7996 \, x^{2} + 7381 \, x - 14164}{256036 \, {\left (2 \, x^{2} - x + 3\right )}^{2}} + \frac {119}{21296} \, \log \left (5 \, x^{2} + 3 \, x + 2\right ) - \frac {119}{21296} \, \log \left (2 \, x^{2} - x + 3\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.58, size = 116, normalized size = 1.01 \begin {gather*} -\ln \left (x+\frac {3}{10}-\frac {\sqrt {31}\,1{}\mathrm {i}}{10}\right )\,\left (-\frac {119}{21296}+\frac {\sqrt {31}\,247{}\mathrm {i}}{660176}\right )+\ln \left (x+\frac {3}{10}+\frac {\sqrt {31}\,1{}\mathrm {i}}{10}\right )\,\left (\frac {119}{21296}+\frac {\sqrt {31}\,247{}\mathrm {i}}{660176}\right )-\ln \left (x-\frac {1}{4}-\frac {\sqrt {23}\,1{}\mathrm {i}}{4}\right )\,\left (\frac {119}{21296}+\frac {\sqrt {23}\,53403{}\mathrm {i}}{259108432}\right )+\ln \left (x-\frac {1}{4}+\frac {\sqrt {23}\,1{}\mathrm {i}}{4}\right )\,\left (-\frac {119}{21296}+\frac {\sqrt {23}\,53403{}\mathrm {i}}{259108432}\right )-\frac {\frac {373\,x^3}{256036}-\frac {1999\,x^2}{256036}+\frac {61\,x}{8464}-\frac {3541}{256036}}{x^4-x^3+\frac {13\,x^2}{4}-\frac {3\,x}{2}+\frac {9}{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________